The Slider Component > FSlider.setSmallStepAmount()

 

FSlider.setSmallStepAmount()

Availability

Flash Player 6.

Usage

mySlider_sld.setSmallStepAmount (step)

Parameters

step The amount the thumb should move when the user presses one of the arrow keys on the keyboard.

Returns


Nothing

Description

Sets the small step amount. The small step amount is the value of how much the thumb on the slider will move when the user presses one of the arrow keys on the keyboard. It only affects keyboard navigation.

Example

The slider_setLargeStepAmount.fla example file contains an example of using this method.

The following code sets the small step amount to 1 and also retrieves the value and traces it.

mySlider_sld.setSmallStepAmount(1); // the keyboard will move the thumb 1 at a time.
trace( "Step Amount: " + mySlider_sld.getSmallStepAmount() );

 

See also

FSlider.getLargeStepAmount()

FSlider.getSmallStepAmount()

FSlider.setLargeStepAmount()